package com.example.initializr.pj.datasource;

import org.apache.ibatis.session.SqlSession;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.io.FileOutputStream;
import java.sql.Connection;
import java.util.*;

@SpringBootTest
public class mybatis {
    @Autowired
    private SqlSession sqlSession;
    @Test
    public void testMybatis(){
//        Connection connection=sqlSession.getConnection();
//        System.out.println("connection"+connection);
        List list=new ArrayList<>();

        list.add(200);
        list.add(200);
        System.out.println(list);

        LinkedList linkedList=new LinkedList();
        linkedList.add(200);
        linkedList.add(200);
        System.out.println(linkedList);

        Set set=new HashSet();
        set.add(200);
        set.add(200);
        System.out.println(set);


    }

    public static void testLingth(int... a){

        for (int i = 0; i < a.length; i++) {
            System.out.println(a.toString());
        }

    }

    public static void main(String[] args) {
        testLingth(1,2,3);
    }
}
